package com.bookpavilion.search.dao;

import com.bookpavilion.search.pojo.Goods;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

public interface GoodsDao extends ElasticsearchRepository<Goods,String>{

    public Page<Goods> findByIntroductionOrGoodsname(String goodsname, String introduction, Pageable pageable);

}
